<me:UIMCT x:Class="WPFExcelReport.TZLAM3011"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    x:Name="TV"
                    Background="White"    
                    Loaded="Window_Loaded"
     >
    <me:UIMCT.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIMCT.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0">  
            <WrapPanel Margin="10,10,0,0"> 
                <Button Margin="10,10,0,0" Content="{Binding Source={Localization:Translate Word=打开}}" Click="OpenCommand"/>
                <Button Margin="10,10,0,0" Content="{Binding Source={Localization:Translate Word=关闭}}" Click="CloseCommand"/>
                <Button Margin="10,10,0,0" Content="{Binding Source={Localization:Translate Word=写入}}" Click="btnWrite_Click"/>
                <Button Margin="10,10,0,0" Content="{Binding Source={Localization:Translate Word=读取}}" Click="btnRead_Click"/> 
            </WrapPanel>  
        </StackPanel>
        <StackPanel Grid.Row="1">
            <WrapPanel Margin="10,10,0,0">
                <TextBlock Text="{Binding Source={Localization:Translate Word=写入}}"/>
                <ex:TXT72 Name="txtWrite0" Width="30" Height="25" TextWrapping="Wrap"/>
                <ex:TXT72 Name="txtWrite1" Width="30" Height="25" TextWrapping="Wrap"/>
                <ex:TXT72 Name="txtWrite2" Width="30" Height="25" TextWrapping="Wrap"/>
                <ex:TXT72 Name="txtWrite3" Width="30" Height="25" TextWrapping="Wrap"/>
                <ex:TXT72 Name="txtWrite4" Width="30" Height="25" TextWrapping="Wrap"/>
            </WrapPanel>

            <WrapPanel Margin="10,10,0,0">
                <TextBlock Text="{Binding Source={Localization:Translate Word=读取}}"/>
                <TextBlock Name="txtRead0" Width="300" Height="500" TextWrapping="Wrap"/>
            </WrapPanel>
        
        </StackPanel>
       
    </Grid>
</me:UIMCT>
